package com.itstudio.portal.controller;

import com.itstudio.portal.entity.Exchanges;
import com.itstudio.portal.entity.vo.ExchangesVo;
import com.itstudio.portal.service.ExchangesService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/api/exchanges")
public class ExchangesController {


    @Resource
    private ExchangesService exchangesService;
    @GetMapping("/list")
    public List<ExchangesVo> getAllList(){

        return exchangesService.getAllList();

    }
}
